import { setComponentMap } from '@epic-designer/utils';
import { Button, Input, Select } from 'ant-design-vue';

// 定义组件字典
const componentDictionary = {
  button: {
    component: Button,
    defaultProps: {
      type: 'primary',
      size: 'middle'
    },
    category: '基础组件',
    icon: 'button-icon',
    description: '按钮组件'
  },
  input: {
    component: Input,
    defaultProps: {
      placeholder: '请输入',
      allowClear: true
    },
    category: '表单组件',
    icon: 'input-icon',
    description: '输入框组件'
  },
  select: {
    component: Select,
    defaultProps: {
      placeholder: '请选择',
      allowClear: true
    },
    category: '表单组件',
    icon: 'select-icon',
    description: '下拉选择组件'
  }
  // 可以继续添加更多组件...
};

// 导出组件字典
export const componentMap = componentDictionary;
// 初始化时设置组件字典
setComponentMap(componentDictionary);

